<!--
  @author duanzuocai
  @since 2018/10/19 23:12
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--搜索条件置于单独的layui-card-body中
    -->
<div class="layui-card-body" th:fragment="query">
    <!--用于保存或传值的隐藏表单元素
        置于form标签内的最上方
        -->

    <!--每个zmn-form-item一行，每行4列
       支持页面自适应，1280分辨率下不折行
       -->
    <div class="zmn-form-item">

        <!--默认情况下标签item-inline占据1列，
            加入样式col2，表示该item-inline占据2列，用于支持多级联动下拉框
            -->
        <div class="item-inline">
            <label class="inline-label">组名称/ID：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <input type="text" name="nameOrGroupId" th:value="${vo.nameOrGroupId}" placeholder="模糊搜索" autocomplete="off"
                               class="layui-input" style="width:233px;" maxlength="45"/>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">所属平台：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="plat" name="plat" value="0" lay-search="">
                            <option value="0">-选择-</option>
                            <option value="10" th:selected="${vo.plat == 10}">啄木鸟</option>
                            <option value="20" th:selected="${vo.plat == 20}">言而有信</option>
                            <option value="40" th:selected="${vo.plat == 40}">川南环保</option>
                            <option value="30" th:selected="${vo.plat == 30}">一步生活</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">模块：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="module">
                            <option value="" th:selected="${0 == vo.module}">全部</option>
                            <option th:each="module:${modules}" th:selected="${module.moduleId == vo.module}" th:value="${module.moduleId}"
                                    th:text="${module.moduleName}">
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">状态：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select name="status" th:value="${vo.status}">
                            <option value="0" th:selected="${0 == vo.status}">全部</option>
                            <zmn th:each="status:${statuses}">
                                <option th:value="${status.key}" th:selected="${status.key == vo.status}"
                                        th:text="${status.value}"></option>
                            </zmn>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <!--查询与重置按钮
            查询按钮lay-filter属性统一定义为zmn-form-submit
            如查询条件较多，为节省横向空间，查询按钮使用小按钮(无文字“查询”)
            -->
        <div class="item-submit">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="LAY-user-back-search"><i class="layui-icon">&#xe615;</i></button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm" lay-submit="" lay-filter="zmn-form-reset"><i
                    class="layui-icon">&#xe669;</i></button>
        </div>

    </div>
</div>
